//
//  CustomDirectiveViewController.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/25.
//

#import "CustomDirectiveViewController.h"
#import "CustomDirectiveView.h"

@interface CustomDirectiveViewController ()
{
    CustomDirectiveView *_CustomDirectiveView;
}
@end

@implementation CustomDirectiveViewController

- (void)viewDidLoad {
    [super viewDidLoad];


    self.view.backgroundColor = [UIColor whiteColor];
    //隐藏头部view
    self.navigationController.navigationBar.hidden = YES;
    NavigationHeadView *navgationheadv = [[NavigationHeadView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, SafeAreaTopHight)];
    navgationheadv.titlelabel.text = @"自定义指令";
    navgationheadv.titlelabel.textColor = [UIColor blackColor];
    navgationheadv.backbtn.hidden = NO;
    [navgationheadv.backbtn addTarget:self action:@selector(returnback) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:navgationheadv];

    
    _CustomDirectiveView = [[CustomDirectiveView alloc]initWithFrame:CGRectMake(0, SafeAreaTopHight, APPwidth, APPheight)];
    [self.view addSubview:_CustomDirectiveView];
    
    
    
    
}

-(void)returnback{
    [self.navigationController popViewControllerAnimated:YES];
}
#pragma mark -视图即将出现
-(void)viewWillAppear:(BOOL)animated{
        
    ((TabbarController *)self.tabBarController).tabBarView.hidden = YES;
    
}


@end
